<?php
ob_start();

$email = '';
$fullname = '';
$address = '';
$phone = '';
$sex = '';
$error = '';

if(isset($_POST['btnsaveprofile'])){
    $email = strip_tags($profile["email"]);
    $fullname = strip_tags($_POST['txtefullname']);
    $address = strip_tags($_POST['txteaddress'] . ','. $_POST['slcecity']);
    $phone = $_POST['txtephone'];
    $sex = strip_tags($_POST['slcesex']);
    $success = true;
    if(empty($error)){
        $accDAO = new accountDAO();
        $accDTO = new accountDTO($accId, $email, $password, $fullname, $address, $phone, $DOB, $sex, $joinDate, $status, $avtUrl);
        $accDAO->update($accDTO);
    }
}
?>